import { baseRequest } from "@/utils/request";

const request = (url, ...arg) => baseRequest(`/api/schedulingPlan/${url}`, ...arg)
/**
 * 配置
 *
 * @author mh
 * @date 2022-09-22 22:33:20
 */
export default {
    //获取工单信息
    ticketPage(data) {
        return request('page', data, 'get')
    },
    // 提交表单
    ticketAdd(data) {
        return request('add', data)
    },
    //批量删除
    ticketRangeDelete(data) {
        return request('delete', data)
    },
    ticketEdit(data) {
        return request('edit', data)
    },
    //导出
    ticketExport(data) {
        return request('export', data, 'post', {
            responseType: 'blob'
        })
    },
    //绑定
    bindTicket(data) {
        return request('BindProductionPlan', data, 'get')
    },
    //计划排程
    queryProductionPlan(data) {
        return request('QueryProductionPlanAsync', data, 'get')
    },
    //新计划排程
    newQueryProductionPlan(data) {
        return request('NewQueryProductPlanAsync', data, 'get')
    }
}